# # 题目一
# sum = 0
# i = 1
# while i <= 100:
#     sum = sum + i
#     i = i + 1
# print(sum)

# # 题目二
# sum=0
# i=1
# while i<=100:
#     if  i % 2 != 0:
#         sum = sum + i
#     i=i+1
#     print(sum)

# # 题目三
# # 输入一个小于10的正整数n
# n = int(input('输入一个小于10的正整数：'))
# factorial = 1
# i = 1
# while i <= n:
#     factorial *= i
#     i = i + 1
# print(f'{n}的阶乘：{n}！={factorial}')

# # 题目四
# sum=0
# i=1
# while i<=100:
#     if i % 3 == 0 and i % 5 != 0:
#         sum=sum+i
#     i=i+1
# print(sum)

# # 题目五
# sum=0
# for i in range(1,101):
#     if i%3==0 and i%5!=0:
#         sum=sum+i
# print(sum)

# # 题目六
# for a in range(1, 10):
#     for b in range(0, 10):
#         for c in range(0, 10):
#             for d in range(0, 10):
#                 if(a*10+b+c*10+d)*(a*10+b+c*10+d)==a*1000+b*100+c*10+d:
#                     print(a,b,c,d)

# # 题目七
# for a in range(1, 10):
#     for b in range(0, 10):
#         for c in range(0, 10):
#             if a**3+b**3+c**3 == a*100+b*10+c:
#                 print(f'{a}{b}{c}')

# # 题目八
# for i in range(1, 10):
#     for j in range(1, 10):
#         if j<=i:
#             print(f'{i}*{j}={i*j}',end='\t')
#     print()


# 能力拓展
# 题目一




